package com.have.blog.admin.service;


import com.have.blog.base.wrapper.Wrapper;
import com.have.blog.model.models.Admin;
import com.have.blog.model.models.AdminRole;
import com.have.blog.model.models.ResourceMenu;
import org.springframework.security.core.userdetails.UserDetails;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface AdminLoginService {
    Wrapper login(HttpServletRequest request, String username, String password, Boolean isRememberMe);
    Wrapper info();
    Wrapper logout();
    Wrapper getMenu();
    Admin loadAdminByUsername(String username);
    List<ResourceMenu> loadResourceMenuByRoleUid(Integer roleUid);
    AdminRole loadRoleByUid(Integer roleUid);
    UserDetails loadUserDetailByAdmin(Admin admin);
}
